package com.ssy.lingxi.contract.repository;

import com.ssy.lingxi.contract.entity.SignatureLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 电子签章记录仓库类
 * @author yzc
 * @version 2.0.0
 * @date 2020/9/1
 */
@Repository
public interface SignatureLogRepository extends JpaRepository<SignatureLog, Long>, JpaSpecificationExecutor<SignatureLog> {
    SignatureLog findByFlowId(String flowId);

    List<SignatureLog> findAllByState(Integer state);
}
